Skip to content

ATLAS-5367: Fix missing license headers in dist/n3 for WAR packaging - #718

Merged
pawarprasad123 merged 1 commit into
apache:masterfrom
Brijesh619:ATLAS-5367
Aug 4, 2026
Merged

ATLAS-5367: Fix missing license headers in dist/n3 for WAR packaging#718
pawarprasad123 merged 1 commit into
apache:masterfrom
Brijesh619:ATLAS-5367

Conversation

@Brijesh619

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This patch resolves the Apache RAT plugin license check failures that occur during the dashboard build process. The following changes were made:

  1. dashboard/vite.config.ts: Added a custom Vite plugin that dynamically reads the Apache License header and automatically injects it into all generated minified .js, .css, and index.html assets in the dist/n3 output directory.
  2. dashboard/pom.xml: Added an exclusion for the .frontend-toolchain/** directory in the apache-rat-plugin configuration. This prevents the checker from scanning 3rd-party node/npm binaries downloaded by the frontend-maven-plugin.

How was this patch tested?

  • Manually verified by running npm run build in the dashboard/ directory. Confirmed that all generated .js, .css, and .html assets inside dist/n3/assets/ correctly contain the Apache License at the top of the files.
  • Executed a successful full local Maven build (mvn clean package -DskipTests -Pdist,embedded-hbase-solr) to confirm that the apache-rat-plugin check passes without throwing any license missing errors.

@pawarprasad123
pawarprasad123 self-requested a review August 4, 2026 07:50

@pawarprasad123 pawarprasad123 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM.

@Brijesh619

Copy link
Copy Markdown
Contributor Author
Screenshot from 2026-08-04 14-51-28 Screenshot from 2026-08-04 14-51-17

@pawarprasad123 pawarprasad123 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pawarprasad123
pawarprasad123 merged commit f8668c5 into apache:master Aug 4, 2026
2 checks passed
pawarprasad123 pushed a commit that referenced this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants